package com.art.coconut.example.model;

import com.art.coconut.annotation.EntityTag;
import com.art.coconut.annotation.PropertyField;
import com.art.coconut.annotation.UnionId;
import lombok.Data;

import java.util.Date;

@Data
@EntityTag("EMPLOYEE")
public class Employee {
    @PropertyField("缓释ID")
    @UnionId
    private String id;

    @PropertyField("明细ID")
    private String detailID;

    @PropertyField("缓释名称")
    private Date birthDay;

    public static Employee build(String id, String detailID, Date birthDay){
        Employee employee = new Employee();
        employee.setId(id);
        employee.setDetailID(detailID);
        employee.setBirthDay(birthDay);
        return employee;
    }
}
